package com.flyco.modules.oms.entity;

import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import com.flyco.poi.excel.annotation.Excel;

/**
 * @Description: 订单折扣使用记录
 * @Author: flyco
 * @Date:   2024-04-12
 * @Version: V1.0
 */
@Data
@TableName("oms_order_discount_record")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="oms_order_discount_record对象", description="订单折扣使用记录")
public class OmsOrderDiscountRecord {
    
	/**id*/
	@TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "id")
	private Long id;
	/**订单ID*/
	@Excel(name = "订单ID", width = 15)
    @ApiModelProperty(value = "订单ID")
	private String orderId;
	/**订单使用的折扣id*/
	@Excel(name = "订单使用的折扣id", width = 15)
    @ApiModelProperty(value = "订单使用的折扣id")
	private Long discountId;
	/**货物优惠金额*/
	@Excel(name = "货物优惠金额", width = 15)
    @ApiModelProperty(value = "货物优惠金额")
	private java.math.BigDecimal productAmount;
	/**促销优惠金额*/
	@Excel(name = "促销优惠金额", width = 15)
    @ApiModelProperty(value = "促销优惠金额")
	private java.math.BigDecimal promotionAmount;
	/**任务达成优惠金额*/
	@Excel(name = "任务达成优惠金额", width = 15)
    @ApiModelProperty(value = "任务达成优惠金额")
	private java.math.BigDecimal missionAmount;
	/**调价补差优惠金额*/
	@Excel(name = "调价补差优惠金额", width = 15)
    @ApiModelProperty(value = "调价补差优惠金额")
	private java.math.BigDecimal adjustAmount;
	/**使用状态（1.使用 2.退回）*/
	@Excel(name = "使用状态（1.使用 2.退回）", width = 15)
    @ApiModelProperty(value = "使用状态（1.使用 2.退回）")
	private Integer useStatus;
	/**创建人*/
	@Excel(name = "创建人", width = 15)
    @ApiModelProperty(value = "创建人")
	private String createBy;
	/**创建时间*/
	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
	private Date createTime;
	/**修改人*/
	@Excel(name = "修改人", width = 15)
    @ApiModelProperty(value = "修改人")
	private String updateBy;
	/**修改时间*/
	@Excel(name = "修改时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "修改时间")
	private Date updateTime;
}
